package com.sl.dev.modular.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sl.common.pojo.CommonEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Lob;
import lombok.Getter;
import lombok.Setter;

/**
 * 文件实体
 *
 * @author xuyuxiang
 * @date 2022/2/23 18:27
 **/
@Getter
@Setter
@TableName("dev_file_bucket")
@Entity(name = "dev_file_bucket")
public class DevFileBucket extends CommonEntity {

    @Schema(description = "文件ID")
    private String fileId;

    @Schema(description = "文件二进制")
    @Lob
    @Column(length = Integer.MAX_VALUE)
    private byte[] fileByte;

    /**
     * 扩展信息
     */
    @Schema(description = "扩展信息")
    private String extJson;
}
